import request from '@/utils/request'

// 查询技师评价列表
export function listTechnicianAppraise(query) {
  return request({
    url: '/technicianAppraise/technicianAppraise/list',
    method: 'get',
    params: query
  })
}

// 查询技师评价详细
export function getTechnicianAppraise(id) {
  return request({
    url: '/technicianAppraise/technicianAppraise/' + id,
    method: 'get'
  })
}

// 新增技师评价
export function addTechnicianAppraise(data) {
  return request({
    url: '/technicianAppraise/technicianAppraise',
    method: 'post',
    data: data
  })
}

// 修改技师评价
export function updateTechnicianAppraise(data) {
  return request({
    url: '/technicianAppraise/technicianAppraise',
    method: 'put',
    data: data
  })
}

// 删除技师评价
export function delTechnicianAppraise(id) {
  return request({
    url: '/technicianAppraise/technicianAppraise/' + id,
    method: 'delete'
  })
}
